package uoc.ei.practica;

/**
 * Entidad que representa una reserva sobre una pista de un club
 */
public class Reserve {
	
	private int court;
	private int id;
	private static int last_id;

	public Reserve(int court) {
		this.court=court;
		this.id=last_id++;
		
	}
	
	public String toString() {
		StringBuffer sb =new StringBuffer();
		sb.append("id: "+id+Messages.LS);
		sb.append("courts: "+this.court);
		return sb.toString();
	}

}
